#include "threadpool.hpp"
#include <unistd.h>


void task1(int num1)
{
    std::cout << num1 << "\n";
}

void task2(int num1, int num2)
{
    std::cout << num1 << " : " << num2 << "\n";
}

void task3(int num1, int num2, int num3)
{
    std::cout << num1 << " : " << num2 << " : "<< num3 <<  "\n";
}



int main()
{
    threadpool::threadpool tp;
    tp.push(task1, 2);
    tp.push(task2, 3, 4);
    tp.push(task3, 4, 5 ,6);

    tp.wait_all();
    // sleep(1);    
    tp.stop();
    return 0;
}